
<!DOCTYPE php>
<?php
/*
 * Home Dokument ein stieg in die WebApp
 */

session_start();
		if($_SESSION["SID"] != NULL )
		{?>
<html>
    <head>
        <title>Willkommen <?php echo $_SESSION["Name"]; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="./style/basic.css"/>
        <script type="text/javascript" src="./JavaScript/ErweiterungsScript.js"></script>
    </head>
    <body onload="javascript:tool_fade_in()" >
        
         <?php
            include './php_files/produkte_auslesen.php';
        ?>
        
        <div id="Seite_letzte" onmouseover="javascript:On('Seite_letzte')" onmouseout="javascript:Off('Seite_letzte')" onclick="javascript:neu_Produkt()"></div>
        
        <div id="new_Seite">
            <form name="neue_Seite" action="./php_files/produkt_anlegen.php" enctype="multipart/form-data" method="post">
                <table cellspacing="0" cellpadding="2" id="Kontakt_Table">
                <tbody>
                    <tr>
                        <td valign="top">Bitte wählen Sie ein Bild aus:</td>
                        <td>
                            <input type="file" name="datei" id="datei">
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">Name:</td>
                        <td>
                            <input maxlength="80" name="Name" size="45" type="text" /><br>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">Spezifikation:</td>
                        <td>
                            <textarea cols="50" rows="8" name="Spezifikation">Spezifikation</textarea><br>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">Beschreibung:</td>
                        <td>
                            <textarea cols="50" rows="8" name="Beschreibung">Beschreibung</textarea><br>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="submit" value="Erstellen">
                        </td>
                        <td>
                            <input type="reset" value="Abbrechen">
                        </td>
                    </tr>
                </tbody>
            </table>   
            </form>
        </div>
        <div id="new_Katalog">
            <form name="neuer_Katalog" action="./php_files/katalog_anlegen.php" method="post">
                <table cellspacing="0" cellpadding="2" id="Kontakt_Table">
                <tbody>
                    <tr>
                        <td valign="top">Name:</td>
                        <td>
                            <input maxlength="80" name="Name" size="45" type="text" /><br>
                            <input type="hidden" name="ProduktIDs" value="Leer"/>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">Design:</td>
                        <td>
                            <select name="Design">
                                    <option>Sommer</option>
                                    <option>Fruehling</option>
                                </select><br>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">Beschreibung:</td>
                        <td>
                            <textarea cols="50" rows="8" name="Beschreibung">Beschreibung</textarea><br>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="submit" value="Erstellen">
                        </td>
                        <td>
                            <input type="reset" value="Abbrechen">
                        </td>
                    </tr>
                </tbody>
            </table>   
            </form>
        </div>
        
        <div id="footer">
            <a href="./php_files/logout.php"><img src="./images/Buttons/Logout.png" height="64px" width="64px" alt="Logout" title="Logout"></a>
            <a href="javascript:ausblenden()"><img src="./images/Buttons/Erstellen.png" height="64px" width="64px" alt="Logout" title="Erstellen"></a>
            <a href="javascript:neu_Katalog()"><img src="./images/Buttons/Speichern.png" height="64px" width="64px" alt="Drucken" title="Drucken"></a>
            <a href="./katalog.php"><img src="./images/Buttons/Katalog.png" height="64px" width="64px" alt="Drucken" title="Katalog"></a>
            <a href="./home.php"><img src="./images/Buttons/Zurueck.png" height="64px" width="64px" alt="Zurueck" title="Zur&uuml;ck" ></a>
        </div>
    </body>
</html>
<?php
}
    else
        {echo "Du bist nicht eingeloged!";}?>
 